// app.js
App({
  globalData: {
    userInfo: null,
  //  url:'https://zhongkexiangjiu.cn',
      //叶老师后台
      //url:'http://192.168.10.212:8080'
      //小七后台
      url:'http://192.168.10.190:8080'
    

  },
  onLaunch() {
    // 展示本地存储能力
   const logs = wx.getStorageSync('logs') || []
   logs.unshift(Date.now())
   wx.setStorageSync('logs', logs)

    let menuButtonObject = wx.getMenuButtonBoundingClientRect();
    wx.getSystemInfo({
      success: res => {
        console.log(res,123456,menuButtonObject);
        let statusBarHeight = res.statusBarHeight,
          navTop = menuButtonObject.top,//胶囊按钮与顶部的距离
          navHeight = statusBarHeight + menuButtonObject.height + (menuButtonObject.top - statusBarHeight)*2;//导航高度
        this.globalData.navHeight = navHeight;
        this.globalData.navTop = navTop;
        this.globalData.windowHeight = res.windowHeight;
      },
      fail(err) {
        console.log(err);
      }
    })
  }
})
